<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace library\exceptions;

/**
 * Description of Exception500
 *
 * @author Damian
 */
class Exception500 extends BaseException{
        public function __toString() {
        $result='';       

        $result.='</h1>';
        if (DEBUG) {
            $result.=parent::__toString ();
        }
         return $result;
    }
    public function __construct($message="", $code=0, $previous=null) {
        parent::__construct($message, $code, $previous);
        $this->serverCode=500;
    }
}

